package com.jz.beijianbao.planclass.mapper;

import com.jz.beijianbao.planclass.bean.PlanClass;
import com.jz.beijianbao.planclass.bean.PlanClassAdd;
import com.jz.beijianbao.planclass.bean.PlanClassSelectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PlanMapper {

    List<PlanClass> queryPag(PlanClassSelectVo subClassSelectVo);

    int add(PlanClass subClass);

    PlanClass selectById(Integer id);

    int update(PlanClassAdd subClassAdd);

    int status(PlanClass subClass);

    int queryCount(PlanClassSelectVo subClassSelectVo);

    @Select("select * from subclass where code= #{code}")
    PlanClassAdd queryByCode(String code);
    @Select("select * from subclass where name= #{name}")
    PlanClassAdd queryByName(String name);
}
